package org.tim.net;

import java.io.*;

/**
 * An InputStreamReader compatible with network input streams
 * @author Tim Fennis
 */
public class NetworkStreamWriter {
	
	private OutputStream _out = null;
	private PrintWriter _pw = null;
	private boolean debug = false;
	
	/**
	 * Construct the class with an inpustream as parameter
	 */
	public NetworkStreamWriter ( OutputStream out ) {
		_out = out;
		_pw = new PrintWriter ( _out , true );
	}
	
	/**
	 *
	 */
    public void writeLine( String line ) throws IOException
    {
        _pw.println( line );
    }
		
	/**
	 * Close the input stream
	 * @throws IOException if an I/O error occurs
	 */
	public void close() throws IOException {
		_pw.close();
	}
	
}